package com.hdoit.apollo.logical.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.stock.model.StockCollocation;
import com.tennetcn.data.dao.base.IMapper;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:48:54
 * @comment
 */
@Repository(value="stockCollocationMapper")
public interface StockCollocationMapper extends IMapper<StockCollocation>{

	public List<StockCollocation> getStockCollocationByCargoId(@Param("cargoId")String cargoId);

	int updateStockNo(@Param("collocationId") String collocationId,@Param("collocationNum")Double collocationNum);
	
	int updateStockCollocationNo(@Param("collocationId") String collocationId,@Param("collocationNum")Double collocationNum);

	public StockCollocation queryModelByCollocationId(@Param("collocationId") String collocationId);
}